package cz.cvut.felk.via.sm.model;

import java.io.Serializable;
import java.util.List;

import org.hibernate.validator.constraints.NotBlank;

public class User implements Serializable {
	private static final long serialVersionUID = 1728167041538065348L;
	@NotBlank
	private long id;
	@NotBlank
	private String username;
	@NotBlank
	private String password;
	@NotBlank
	private String role;
	private List<Subject> subjects;
	public long getId() {
		return id;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public List<Subject> getSubjects() {
		return subjects;
	}

	public void setSubjects(List<Subject> subjects) {
		this.subjects = subjects;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}
